package com.color.admin.system.entity.vo.user;


import com.color.admin.system.entity.vo.dept.DeptSmallVo;
import com.color.admin.system.entity.vo.post.PostSmallVo;
import com.color.admin.system.entity.vo.role.RoleSmallVo;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;
import java.util.Set;

/**
 * @author HaiQiu
 * @date 2021/12/14
 */
public class UserVo {

    private String id;

    private String username;

    private String nickname;

    private String realName;

    private String birthday;

    private String about;

    private String location;

    @JsonIgnore
    private String password;

    private String phone;

    private String avatar;

    private String email;

    @JsonIgnore
    private Date createTime;

    @JsonIgnore
    private Date updateTime;

    private Integer sex;

    private Integer sort;

    private Integer status;

    private Boolean active;

    private DeptSmallVo dept;

    private Set<RoleSmallVo> roles;

    private Set<PostSmallVo> posts;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Boolean getActive() {
        return active;
    }

    public void setActive(Boolean active) {
        this.active = active;
    }

    public DeptSmallVo getDept() {
        return dept;
    }

    public void setDept(DeptSmallVo dept) {
        this.dept = dept;
    }

    public Set<RoleSmallVo> getRoles() {
        return roles;
    }

    public void setRoles(Set<RoleSmallVo> roles) {
        this.roles = roles;
    }

    public Set<PostSmallVo> getPosts() {
        return posts;
    }

    public void setPosts(Set<PostSmallVo> posts) {
        this.posts = posts;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getAbout() {
        return about;
    }

    public void setAbout(String about) {
        this.about = about;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
}
